package tedu.study.ooday02;

public class ConsDemo {
    public static void main(String[] args) {
        //Student zs = new Student();//编译错误，Student类，没有无参构造方法
        Student zs = new Student("zhangsan",21,"SH");
        Student ls = new Student("lisi",31,"HN");
        zs.sayHi();
        ls.sayHi();

        Student ww = new Student();
        ww.sayHi();

        //zs.study("nanci");
    }
}
